package com.bjboot.caocao.system.dao;

import com.bjboot.caocao.system.domain.RoleDO;

import java.util.List;
import java.util.Map;

public interface RoleMapper {
    int deleteByPrimaryKey(Long roleId);

    int insert(RoleDO record);

    int insertSelective(RoleDO record);

    RoleDO selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(RoleDO record);

    int updateByPrimaryKey(RoleDO record);

    // 自定义方法
    List<RoleDO> list(Map<String,Object> map);

    int count(Map<String,Object> map);

    int batchRemove(Long[] roleIds);
}